package com.ssy.lingxi.pay.api.common.allInPay;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 通联
 *
 * @author lqa
 * @version 2.0.0
 * @date 2021/11/26
 */
public enum AllInPayMemberTypeEnum {
    ENTERPRISE(2L, "企业会员"),
    PERSONAL(3L, "个人会员");

    private Long code;

    AllInPayMemberTypeEnum(Long code, String name) {
        this.code = code;
    }

    public Long getCode() {
        return code;
    }

    public void setCode(Long code) {
        this.code = code;
    }


    public String getName() {
        return LanguageHolder.getName(this.getClass(), Math.toIntExact(this.code));
    }

}
